home *** CD-ROM | disk | FTP | other *** search
/ Champak 52 / Volume 52 - JOGO DISK .iso / Games / scoobybigair.swf / scripts / frame_29 / DoAction.as
Text File  |  2007-10-01  |  436b  |  33 lines

  1. gameMC.gLevel = 3;
  2. if(jump1 == "--")
  3. {
  4.    jump1 = 0;
  5. }
  6. if(jump2 == "--")
  7. {
  8.    jump2 = 0;
  9. }
  10. if(jump3 == "--")
  11. {
  12.    jump3 = 0;
  13. }
  14. average = Math.round(jump1 + jump2 + jump3);
  15. gameMC.gScore = average;
  16. if(average < 6000)
  17. {
  18.    gotoAndStop("end1");
  19. }
  20. else if(average < 12000)
  21. {
  22.    gotoAndStop("end2");
  23. }
  24. else if(average < 18000)
  25. {
  26.    gotoAndStop("end3");
  27. }
  28. else
  29. {
  30.    gotoAndStop("end4");
  31. }
  32. gameMC.HSGameOver();
  33.